.memory-usage-card {
  width: 100%;
}

.memory-usage-card .resource-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.memory-usage-card .usage-value {
  font-size: 24px;
  font-weight: 600;
  color: #1890ff;
}

.memory-usage-card .memory-details {
  font-size: 13px;
  color: #666;
}

/* 进度条样式 */
.memory-usage-card .ant-progress {
  margin-top: 8px;
}

.memory-usage-card .ant-progress-line {
  margin: 0;
}

/* 当内存使用率超过阈值时的警告样式 */
.memory-usage-card.warning .usage-value {
  color: #faad14;
}

.memory-usage-card.critical .usage-value {
  color: #ff4d4f;
}

/* 详细视图样式 */
.memory-details-view {
  padding: 16px;
  background: #fff;
  border-radius: 8px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.memory-overview {
  display: flex;
  background: #fafafa;
  border-radius: 8px;
  min-height: 180px;
}

.memory-chart {
  width: 200px;
  height: 100px;
  flex-shrink: 0;
}

.memory-info {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 8px 24px;
  padding: 4px;
}

.memory-info .info-columns {
  display: flex;
  gap: 24px;
}

.memory-info .info-column {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.memory-info .info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafafa;
  padding: 8px 12px;
  border-radius: 4px;
}

.memory-info .info-label {
  color: #666;
  font-size: 14px;
}

.memory-info .info-value {
  color: #1f1f1f;
  font-size: 14px;
}

.section-divider {
  width: 100%;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid #f0f0f0;
}

/* 进程列表样式 */
.memory-processes {
  flex: 1;
  background: #fafafa;
  border-radius: 8px;
  padding: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.memory-processes h3 {
  margin: 0 0 12px 0;
  color: #333;
  font-size: 14px;
  font-weight: 500;
}

.memory-processes .ant-table-wrapper {
  flex: 1;
}

.memory-processes .ant-table {
  background: #fff;
  border-radius: 4px;
}

.memory-processes .ant-table-thead > tr > th {
  background: #fafafa;
  color: #666;
  font-weight: 500;
  padding: 8px 12px;
  font-size: 13px;
}

.memory-processes .ant-table-tbody > tr > td {
  padding: 6px 12px;
  font-size: 13px;
}

.memory-processes .ant-table-tbody > tr:hover > td {
  background: #f5f5f5;
}
